﻿using System.Diagnostics.Contracts;

namespace Library.Collections
{
    public interface ITreeParent : ITreeReadOnly
    {
        [Pure]
        ITreeParent Parent { get; }
    }
}

namespace Library.Collections.Generic
{
    public interface ITreeParent<out TNode> : ITreeReadOnly<TNode>
        where TNode : ITreeReadOnly<TNode>
    {
        [Pure]
        TNode Parent { get; }
    }
}
